﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Portal.API;
using A2Z.BusinessService;
using A2Z.BusinessObjects;
using System.Data;

public partial class Modules_Mod_StoryPick_StoryPick :ModuleBase
{
    protected void Page_Load(object sender, EventArgs e)
    {

        DataSet ds = this.ReadConfig();
        DataTable table = ds.Tables["Module"];
        DataRow row = table.Rows[0];
        int topNumber = int.Parse(row["tb_Number"].ToString());
        int tabId = int.Parse(row["tb_TabId"].ToString());
        string title = row["tb_Title"].ToString();
        lb_Title.InnerHtml = title;
       
        InforService inforService = new InforService();
        List<NewInforShort> list = inforService.GetNewInforShortList(topNumber);
        for(int i = 0 ; i < list.Count ; i++)
        {
            list[i].LinkUrl = "Default.aspx?tabId=" + tabId+"&inforId="+list[i].InforId;
        }
        ModuleStoryPick1.ListNewInforShort = list;
     
    }
}
